//
//  MyCustomView.m
//  Comma
//
//  Created by 杜远洋 on 15-1-16.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MyCustomView.h"
#import "Masonry.h"
#import "GlobalMethod.h"
#define WS(weakSelf) __weak __typeof(&*self)weakSelf = self;

@implementation MyCustomView

- (instancetype)initWithFrame:(CGRect)frame 
{
    self = [super initWithFrame:frame];
    if (self) {
     
#pragma mark - 滚动条有一个回弹效果
        
        [self setBackgroundColor:[UIColor whiteColor]];
        self.leftButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        [self.leftButton setTitle:@"我发布的" forState:UIControlStateNormal];
        
//        self.leftButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
        [self.leftButton setBackgroundColor:[UIColor clearColor]];
        [self.leftButton setTitleColor:TEXTGREENCOLOR forState:UIControlStateNormal];
        self.leftButton.titleLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.leftButton];
        
//        self.rightButton = [UIButton new];
//        [self addSubview:self.rightButton];
//        [self.rightButton setBackgroundColor:[UIColor clearColor]];
//        self.rightButton.titleLabel.font = [UIFont systemFontOfSize:14];
//        [self.rightButton setTitle:@"我参与的" forState:UIControlStateNormal];
        
        
//        
//        [self.leftButton mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.top.mas_equalTo(@(0));
//            
//            make.left.mas_equalTo(@(157));
//            if (iPhone6Plus) {
//                make.left.mas_equalTo(@(177));
//            }
//            make.size.mas_equalTo(CGSizeMake(60, 43));
//        }];
        
        //        [self.rightButton mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.top.mas_equalTo(@(0));
//            make.left.mas_equalTo(@(200));
//            make.size.mas_equalTo(CGSizeMake(60, 43));
//        }];
        
        
    }
    return self;
}

@end
